//
//  ChannelLable.m
//  QWwyNews
//
//  Created by Amisear on 15/10/9.
//  Copyright © 2015年 Amisear. All rights reserved.
//

#import "ChannelLable.h"

@implementation ChannelLable

#define CZNormalFontSize 14.0
#define CZSelectedFontSize 18.0

+ (ChannelLable *)channelLabelWithTitle:(NSString *)title {
    
    ChannelLable *chanLable = [[ChannelLable alloc]init];
    
    chanLable.text = title;
    
    [chanLable sizeToFit];
    
    chanLable.textAlignment = NSTextAlignmentCenter;
    
    chanLable.font = [UIFont systemFontOfSize:CZSelectedFontSize];
    
    // 设置大字体，预留出左右的间距
    chanLable.font = [UIFont systemFontOfSize:CZNormalFontSize];

    return chanLable;
    
}

@end
